/* 
 * File:   DirectoryEntry.h
 * Author: Usama Shaikh
 *
 * Created on February 20, 2011, 12:01 PM
 */

#ifndef DIRECTORYENTRY_H
#define	DIRECTORYENTRY_H
#include <string>
class DirectoryEntry {
public:

    DirectoryEntry();
    DirectoryEntry(char* name, int number);
     ~DirectoryEntry();
    void SetFileName(char* name);
    void SetFileControlBlock(int number);
    char* GetFileName();
    int GetFileControlBlock();
    static void Test();

    static const int FILENAME_LENGTH = 20;
    
    static const int DIRECTORY_ENTRY_LENGTH = FILENAME_LENGTH + sizeof(int);

private:

    int m_fcbNumber;
    char m_fileName[FILENAME_LENGTH];

};

#endif	/* DIRECTORYENTRY_H */

